package com.heer.gymnasium.util;

public class Session {

    /**
     * 用户是否是第一次安装APP true 是的 false不是
     */
    public static boolean user_isfirstdownload;

    /**
     * 用户第一次安装APP 进入首页面时 操作提示 true是的 false不是
     */
    public static boolean user_firstremindhome;

    /**
     * 用户第一次安装APP 进入地图页面时 操作提示 true是的 false不是
     */
    public static boolean user_firstremindmap;

    /**
     * 用户是否登录 true 登录 false 未登录
     */
    public static boolean user_islogin;

    /* 用户是否随便看看*/
    public static boolean user_islook;

    /**
     * 用户是否设置了密保问题
     */
    public static boolean user_SafetyProblem;

    /**
     * SessionId 后面请求的时候回传
     */
    public static String sessionKey;

    /**
     * 是否打开手势密码
     */
    public static boolean isOpenGesture;

    /**
     * 用户设置的手势密码
     */
    public static String user_gesture;

    /**
     * 用户id
     */
    public static String user_id;

    /**
     * 用户头像网络地址
     */
    public static String user_pic_url;

    /**
     * 本地头像地址
     */
    public static String user_loacal_url;

    /**
     * 用户真实姓名
     */
    public static String user_true_name;

    /**
     * 用户身份证号
     */
    public static String user_idcard;

    /**
     * 用户昵称
     */
    public static String user_name;

    /**
     * 用户登录账号
     */
    public static String user_account;

    /**
     * 用户手机号
     */
    public static String user_phone;

    /**
     * 用户等级
     */
    public static String user_level;

    /**
     * 用户认证状态
     */
    public static int user_identified;

    /**
     * 手势密码验证机会
     */
    public static int user_gesture_chance;

    public static String yxAccid;
    public static String yxToken;
    public static String isBoardroom;

    public static String ysToken;
    public static int ysExpire;

    /**
     * 用户微信openid
     */
    public static String user_openid;

    /**
     *用户微信unionid
     */
    public static String user_unionid;

    public static boolean getUserIsFirstDownload() {
        return SysSharePres.getInstance().getUserIsfirstDownload();
    }

    public static void setUserIsFirstDownload(boolean user_isfirstdownload) {
        Session.user_isfirstdownload = user_isfirstdownload;
        SysSharePres.getInstance().setUserIsfirstDownload(user_isfirstdownload);
    }

    public static boolean getUserFirstRemindHome() {
        return SysSharePres.getInstance().getUserFirstRemindHome();
    }

    public static void setUserFirstRemindHome(boolean user_firstremindhome) {
        Session.user_firstremindhome = user_firstremindhome;
        SysSharePres.getInstance().setUserFirstRemindHome(user_firstremindhome);
    }

    public static boolean getUserFirstRemindMap() {
        return SysSharePres.getInstance().getUserFirstRemindMap();
    }

    public static void setUserFirstRemindMap(boolean user_firstremindmap) {
        Session.user_firstremindmap = user_firstremindmap;
        SysSharePres.getInstance().setUserFirstRemindMap(user_firstremindmap);
    }

    public static boolean getUserIsLogin() {
        return SysSharePres.getInstance().getUserIsLogin();
    }

    public static void setUserIsLogin(boolean user_islogin) {
        Session.user_islogin = user_islogin;
        SysSharePres.getInstance().setUserIsLogin(user_islogin);
    }

    public static void setYsToken(String token){
        Session.yxToken = token;
        SysSharePres.getInstance().setYsToken(token);
    }

    public static String getYsToken(){
        return SysSharePres.getInstance().getYsToken();
    }


    public static void setYsExpire(int expire){
        Session.ysExpire = expire;
        SysSharePres.getInstance().setYsExpire(expire);
    }

    public static int getYsExpire(){
        return SysSharePres.getInstance().getYsExpire();
    }

    public static void setYxAccid(String accid){
        Session.yxAccid = accid;
        SysSharePres.getInstance().setYxAccid(accid);
    }

    public static String getYxAccid(){
        return SysSharePres.getInstance().getYxAccid();
    }

    public static void setYxToken(String token){
        Session.yxToken = token;
        SysSharePres.getInstance().setYxToken(token);
    }

    public static String getYxToken(){
        return SysSharePres.getInstance().getYxToken();
    }

    public static void setIsBoardroom(String isBoardroom){
        Session.isBoardroom = isBoardroom;
        SysSharePres.getInstance().setIsBoardroom(isBoardroom);
    }

    public static String getIsBoardroom(){
        return SysSharePres.getInstance().getIsBoardRoom();
    }

    public static void setUserIsLook(boolean user_islook) {
        Session.user_islook = user_islook;
        SysSharePres.getInstance().setUserIsLook(user_islook);
    }

    public static boolean getUserIsLook() {
        return SysSharePres.getInstance().getUserIsLook();
    }

    public static boolean getUserSafetyproblem() {
        return SysSharePres.getInstance().getUserSafetyproblem();
    }

    public static void setUserSafetyproblem(boolean user_SafetyProblem) {
        Session.user_SafetyProblem = user_SafetyProblem;
        SysSharePres.getInstance().setUserSafetyproblem(user_SafetyProblem);
    }

    public static boolean getIsOpenGesture() {
        return SysSharePres.getInstance().getIsOpenGesture();
    }

    public static void setIsOpenGesture(boolean isOpenGesture) {
        Session.isOpenGesture = isOpenGesture;
        SysSharePres.getInstance().setIsOpenGesture(isOpenGesture);
    }

    public static String getSessionKey() {
        return SysSharePres.getInstance().getSessionKey();
    }

    public static void setSessionKey(String sessionKey) {
        Session.sessionKey = sessionKey;
        SysSharePres.getInstance().setSessionKey(sessionKey);
    }

    public static String getUserGesture() {
        return SysSharePres.getInstance().getUserGesture();
    }

    public static void setUserGesture(String user_gesture) {
        Session.user_gesture = user_gesture;
        SysSharePres.getInstance().setUserGesture(user_gesture);
    }

    public static String getUserId() {
        return SysSharePres.getInstance().getUserId();
    }

    public static void setUserId(String user_id) {
        Session.user_id = user_id;
        SysSharePres.getInstance().setUserId(user_id);
    }

    public static String getUserPicUrl() {
        return SysSharePres.getInstance().getUserPicUrl();
    }

    public static void setUserPicUrl(String user_pic_url) {
        Session.user_pic_url = user_pic_url;
        SysSharePres.getInstance().setUserPicUrl(user_pic_url);
    }

    public static String getUserLocalUrl() {
        return SysSharePres.getInstance().getUserLocalUrl();
    }

    public static void setUserLocalUrl(String user_loacal_url) {
        Session.user_loacal_url = user_loacal_url;
        SysSharePres.getInstance().setUserLocalUrl(user_loacal_url);
    }

    public static String getUserTrueName() {
        return SysSharePres.getInstance().getUserTrueName();
    }

    public static void setUserTrueName(String user_true_name) {
        Session.user_true_name = user_true_name;
        SysSharePres.getInstance().setUserTrueName(user_true_name);
    }

    public static String getUserIdCard() {
        return SysSharePres.getInstance().getUserIdCard();
    }

    public static void setUserIdCard(String user_idcard) {
        Session.user_idcard = user_idcard;
        SysSharePres.getInstance().setUserIdCard(user_idcard);
    }

    public static String getUserName() {
        return SysSharePres.getInstance().getUserName();
    }

    public static void setUserName(String user_name) {
        Session.user_name = user_name;
        SysSharePres.getInstance().setUserName(user_name);
    }

    public static String getUserAccount() {
        return SysSharePres.getInstance().getUserAccount();
    }

    public static void setUserAccount(String user_account) {
        Session.user_account = user_account;
        SysSharePres.getInstance().setUserAccount(user_account);
    }

    public static String getUserPhone() {
        return SysSharePres.getInstance().getUserPhone();
    }

    public static void setUserPhone(String user_phone) {
        Session.user_phone = user_phone;
        SysSharePres.getInstance().setUserPhone(user_phone);
    }

    public static String getUserLevel() {
        return SysSharePres.getInstance().getUserLevel();
    }

    public static void setUserLevel(String user_level) {
        Session.user_level = user_level;
        SysSharePres.getInstance().setUserLevel(user_level);
    }

    public static int getUserIdentified() {
        return SysSharePres.getInstance().getUserIdentified();
    }

    public static void setUserIdentified(int user_identified) {
        Session.user_identified = user_identified;
        SysSharePres.getInstance().setUserIdentified(user_identified);
    }

    public static int getUserGestureChance() {
        return SysSharePres.getInstance().getUserGestureChance();
    }

    public static void setUserGestureChance(int user_gesture_chance) {
        Session.user_gesture_chance = user_gesture_chance;
        SysSharePres.getInstance().setUserGestureChance(user_gesture_chance);
    }

    public static  String getUserOpenid(){
        return SysSharePres.getInstance().getUserOpenid();
    }

    public static void setUserOpenid(String user_openid) {
        Session.user_openid = user_openid;
        SysSharePres.getInstance().setUserOpenid(user_openid);
    }

    public static  String getUserUnionid(){
        return SysSharePres.getInstance().getUserUnionid();
    }

    public static void setUserUnionid(String user_unionid) {
        Session.user_unionid = user_unionid;
        SysSharePres.getInstance().setUserUnionid(user_unionid);
    }

    /**
     * 清除数据
     */
    public static void clearShareP() {
        Session.setUserIsLogin(false);
        Session.setUserIsLook(false);
        Session.setSessionKey("");
        Session.setUserId("");
        Session.setUserTrueName("");
        Session.setUserName("");
        Session.setUserAccount("");
        Session.setUserLevel("");
        Session.setUserLocalUrl("");
        Session.setUserIdCard("");
        Session.setUserIdentified(0);
        Session.setYxAccid("");
        Session.setYxToken("");
        Session.setIsBoardroom("");
        Session.setUserOpenid("");
    }
}
